#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
void print(char arr[10],int sz)
{
	int i = 0;
	int j = 0;
	char tmp = 0;
	for (i = 0; i < sz-1; i++)
	{
		for (j = i; j < sz-1-i; j++)
		{
			tmp = arr[j];
			arr[j] = arr[j + 1];
			arr[j + 1] = tmp;
		}
	}
}
int main()
{
	char arr[10] = "avcdf";
	int sz = strlen(arr);
	print(arr,sz);
	printf("%s", arr);
	return 0;
}